package FDUFW.localhost.File;

public class File_Operations {

	/**
	 * 拷贝
	 * @return
	 * author iiixxxiii
	 * 2010 10:14:34 AM
	 */
	public boolean copy(String file_path,String file_name,String pathto,String tofile_name) {
		
		boolean b= false;
		
		
		// 调用win 的 api
		String arg = " xcopy " + file_path + file_name + " " + pathto + tofile_name +" /v /y /f ";
		BadExecJavac.cmdmain(arg);
		
		return b;		
	}
	/**
	 * 拷贝多个
	 * @return
	 * author iiixxxiii
	 * 2010 10:14:34 AM
	 */
	public boolean copys() {
		return false;
	}
	

	/**
	 * 移动
	 * @return
	 * author iiixxxiii
	 * 2010 10:14:34 AM
	 */
	public boolean move() {
		return false;
	}
	/**
	 * 移动多个
	 * @return
	 * author iiixxxiii
	 * 2010 10:14:34 AM
	 */
	public boolean moves() {
		return false;
	}
	
	/**
	 * 重命名
	 * @return
	 * author iiixxxiii
	 * 2010 10:14:34 AM
	 */
	public boolean rename() {
		return false;
	}
	
	/**
	 * 删除
	 * @return
	 * author iiixxxiii
	 * 2010 10:14:34 AM
	 */
	public boolean del() {
		return false;
	}
	
	/**
	 * 删除多个
	 * @return
	 * author iiixxxiii
	 * 2010 10:14:34 AM
	 */
	public boolean dels() {
		return false;
	}
	
	
	public static void main(String[] args) {
		
		File_Operations fo = new File_Operations();
		
		fo.copy("C:\\", "11.xls", "C:\\11\\", "11.xls");
		
	}
	
}
